package com.home.Entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

@Entity
@Table(name="TTPHACHE")
public class TTPhaChe {
	
	@Id
	@Column(name="TPC_MASO")
	private long maSo;
	@ManyToOne
	@JoinColumn(name="TPC_MON")
	private Mon mon;
	@ManyToOne
	@JoinColumn(name="TPC_NGUYENLIEU")
	private NguyenLieu nguyenLieu;
	@Column(name="TPC_SOLUONG")
	private String soLuong;
	@Column(name="TPC_GHICHU")
	private String ghiChu;
	public long getMaSo() {
		return maSo;
	}
	public void setMaSo(long maSo) {
		this.maSo = maSo;
	}
	public Mon getMon() {
		return mon;
	}
	public void setMon(Mon mon) {
		this.mon = mon;
	}
	public NguyenLieu getNguyenLieu() {
		return nguyenLieu;
	}
	public void setNguyenLieu(NguyenLieu nguyenLieu) {
		this.nguyenLieu = nguyenLieu;
	}
	public String getSoLuong() {
		return soLuong;
	}
	public void setSoLuong(String soLuong) {
		this.soLuong = soLuong;
	}
	public String getGhiChu() {
		return ghiChu;
	}
	public void setGhiChu(String ghiChu) {
		this.ghiChu = ghiChu;
	}
	
	
}
